package com.ruoyi.db.domain.system;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 【请填写功能名称】对象 pc_raise_record
 * 
 * @author ruoyi
 * @date 2022-08-03
 */
@ApiModel(value = "PcRaiseRecord",description = "【请填写功能名称】对象 pc_raise_record")
public class PcRaiseRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动记录主键Id */
    private Long id;

    /** 活动主键 */
    @ApiModelProperty(value="活动主键",name="PcRaiseRecord$raiseId")
    @Excel(name = "活动主键")
    private Long raiseId;

    /** 活动类别 */
    @ApiModelProperty(value="活动类别",name="PcRaiseRecord$raiseType")
    @Excel(name = "活动类别")
    private Long raiseType;

    /** 结算时间 */
    @ApiModelProperty(value="结算时间",name="PcRaiseRecord$settleTime")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结算时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date settleTime;

    /** 是否成功 */
    @ApiModelProperty(value="是否成功",name="PcRaiseRecord$isSuccess")
    @Excel(name = "是否成功")
    private Integer isSuccess;

    /** 本期分红总额 */
    @ApiModelProperty(value="本期分红总额",name="PcRaiseRecord$shareAmount")
    @Excel(name = "本期分红总额")
    private BigDecimal shareAmount;

    /** 累积分红总额(同类型活动连续成功累积) */
    @ApiModelProperty(value="累积分红总额(同类型活动连续成功累积)",name="PcRaiseRecord$addShareAmount")
    @Excel(name = "累积分红总额(同类型活动连续成功累积)")
    private BigDecimal addShareAmount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRaiseId(Long raiseId) 
    {
        this.raiseId = raiseId;
    }

    public Long getRaiseId() 
    {
        return raiseId;
    }
    public void setRaiseType(Long raiseType) 
    {
        this.raiseType = raiseType;
    }

    public Long getRaiseType() 
    {
        return raiseType;
    }
    public void setSettleTime(Date settleTime) 
    {
        this.settleTime = settleTime;
    }

    public Date getSettleTime() 
    {
        return settleTime;
    }
    public void setIsSuccess(Integer isSuccess) 
    {
        this.isSuccess = isSuccess;
    }

    public Integer getIsSuccess() 
    {
        return isSuccess;
    }
    public void setShareAmount(BigDecimal shareAmount) 
    {
        this.shareAmount = shareAmount;
    }

    public BigDecimal getShareAmount() 
    {
        return shareAmount;
    }
    public void setAddShareAmount(BigDecimal addShareAmount) 
    {
        this.addShareAmount = addShareAmount;
    }

    public BigDecimal getAddShareAmount() 
    {
        return addShareAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("raiseId", getRaiseId())
            .append("raiseType", getRaiseType())
            .append("settleTime", getSettleTime())
            .append("isSuccess", getIsSuccess())
            .append("shareAmount", getShareAmount())
            .append("addShareAmount", getAddShareAmount())
            .append("createTime", getCreateTime())
            .toString();
    }
}
